import java.awt.*;
import javax.swing.*;

class SwingiNaide {

  public static void main(String[] args) {
    JFrame raam = new JFrame("JFrame");
    raam.setSize(300, 300);
    raam.setLocation(100, 100);

    Container sisu = raam.getContentPane();
    sisu.setLayout(new FlowLayout());

    JLabel silt = new JLabel("JLabel");
    JCheckBox linnuke = new JCheckBox("JCheckBox");
    JPanel raadiopaneel = new JPanel(new GridLayout(2, 1));
    JRadioButton raadionupp1 =
                   new JRadioButton("JRadioButton 1");
    JRadioButton raadionupp2 =
                   new JRadioButton("JRadioButton 2");
    ButtonGroup nupugrupp = new ButtonGroup();
    nupugrupp.add(raadionupp1);
    nupugrupp.add(raadionupp2);
    raadiopaneel.add(raadionupp1);
    raadiopaneel.add(raadionupp2);
    JComboBox valikukast = new JComboBox();
    valikukast.addItem("esimene");
    valikukast.addItem("teine");
    valikukast.addItem("kolmas");
    JButton nupp = new JButton("JButton");
    nupp.setToolTipText("Head vajutamist!");
    nupp.setMnemonic(java.awt.event.KeyEvent.VK_M);
    sisu.add(silt);
    sisu.add(linnuke);
    sisu.add(raadiopaneel);
    sisu.add(valikukast);
    sisu.add(nupp);
    raam.setVisible(true);
  }
}